import service from '@/utils/request'

export const useHighSeasApi = (id: Number) => {
	return service.get('/sys/highseas/' + id)
}

export const useHighSeasSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/sys/highseas', dataForm)
	} else {
		return service.post('/sys/highseas/save', dataForm)
	}
}
export const useHighSeasFileApi = (dataForm: any) => {
	return service.post('/sys/highseas/savefile', dataForm)
}
export const useHighSeasListApi = (dataForm: any) => {
	return service.post('/sys/highseas/list', dataForm)
}
